package org.example.service;

import org.example.pojo.Employee;

import java.util.List;
import java.util.Map;

public interface EmployeeService {
    //分页显示全部员工
    List<Employee> showEmployees();

    //批量删除员工
    int deleteEmployees(String[] ids);

    //单个删除员工
    int deleteEmployee(int eId);

    //添加员工
    int addEmployee(Employee employee);

    //修改员工
    int updateEmployee(Employee employee);

    //根据员工id查询员工
    Employee showEmployeeById(int eId);

    //模糊查询员工
    List<Employee> showEmployeesByAll(String message);

    //查询在职员工
    List<Employee> showZaiZhiEmployees(String msg);

    //模糊查询在职员工
    List<Employee> showZaiZhiEmployeesByAll(Map<String,String> map);

    //模糊查询离职员工或离职员工黑名单
    List<Employee> showLiZhiEmployeeByAll(Map<String,String> map);

    //excel查询所有员工
    List<Employee> selectAllEmployees();
    //excel添加
    int insertTest(List<Employee> tests);
}
